package com.battle.pojo.param.dataLabelingTask;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.battle.pojo.converter.LabelingTaskConvert;
import com.battle.pojo.entity.LabelingTask;
import jakarta.persistence.Column;
import jakarta.persistence.Convert;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 【描 述】：编辑数据标注任务
 * 【环 境】：J2SE 17
 * 【详 细】：
 */
@Data
public class EditDataLabelingTaskParam {

    private Long id;


    /**
     * 是否标注
     */
    @Column()
    private Boolean isLabeling;

    /**
     * 标注时间
     */
    @Column()
    private LocalDateTime labelingTime;

    /**
     * 标注内容
     */
    @Column(columnDefinition="varchar(500)")
    @Convert(converter = LabelingTaskConvert.class)
    @TableField(value = "task",typeHandler = JacksonTypeHandler.class)
    private LabelingTask task;


}